const mysql = require('mysql2/promise');

const con = mysql.createPool({
  host:'localhost',
  user:'root',
  password:'ddd',
  database:'todo_list'
});

class Result {
  construcor(){
    this.code = 0;
    this.msg = 'ok';
    this.data = null;
  }
}

module.exports = {con,Result};
